<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="../include/tag.jsp"%>
<!DOCTYPE html>
<html lang="zh">
<head>
    <title>下级报名人数</title>
    <link rel="stylesheet" href="${ctx}/css/common/list.css">
    <link rel="stylesheet" href="${ctx}/css/common/table.css">
    <%@include file="../include/commonFile.jsp"%>
    <style type="text/css">
        .index-outside >section .section-main{
            min-width: 0px !important;
            max-width: 1050px!important;
        }
    </style>
</head><body>
<!--头部-->
<div class="index-outside">
    <!--内容-->
    <section  class="no-fix">
        <div class="section-main" style="padding: 15px;">
            <form class="layui-form" action="${ctx}/crowdfund/project/childList.do" id="myForm" method="post">
                <input type="hidden" name="pageNo" id="pageNo"/>
                <input type="hidden" name="parentId" id="parentId" value="${projectWithAuthor.parentId}" />
                <input type="hidden" name="targetId" id="targetId" value="${projectWithAuthor.targetId}" />
                <input type="hidden" name="id" value="${projectWithAuthor.id}" />
                <div class="f-search-bar">
                    <div class="search-container">
                        <ul class="search-form-content">
                            <li class="form-item-inline"><label class="search-form-lable">众筹者</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="authorName" autocomplete="off" class="layui-input" value="${projectWithAuthor.authorName}" placeholder="请输入众筹者" style="width: 200px;">
                                </div>
                            </li>
                            <li class="form-item-inline"><label class="search-form-lable">联系电话</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="authorMobile" autocomplete="off" class="layui-input" value="${projectWithAuthor.authorMobile}" placeholder="请输入联系电话" style="width: 200px;">
                                </div>
                            </li>
                            <li class="form-item-inline">
                                <div class="sub-btns">
                                    <a class="layui-btn layui-btn-danger" id="submitBtn">确定</a>
                                    <a class="layui-btn layui-btn-normal" id="resetBtn">重置</a>
                                </div>
                            </li>
                        </ul>
                    </div>
                </div>
            </form>
            <div class="c-time-list-content" style="padding-top: 0px;">
                <ul>
                    <table class="layui-table layui-form">
                        <colgroup>
                            <col>
                            <col>
                            <col>
                            <col>
                            <col>
                        </colgroup>
                        <thead>
                        <tr>
                            <th>众筹者</th>
                            <th>联系电话</th>
                            <th>支持人数</th>
                            <th>支持金额</th>
                            <th>众筹状态</th>
                        </tr>
                        </thead>
                        <tbody>
                        <c:forEach var="zc" items="${list}">
                            <tr>
                                <td>
                                    <div class="ellipsis-1">
                                            ${zc.authorName}
                                    </div>
                               </td>
                                <td>${zc.authorMobile}</td>
                                <td>${zc.favorerNum}</td>
                                <td>${zc.actualAmount}</td>
                                <td>
                                    <c:if test="${zc.isSuccess == 0}">
                                        <span>众筹中</span>
                                    </c:if>
                                    <c:if test="${zc.isSuccess == 1}">
                                        <span>众筹成功</span>
                                    </c:if>
                                    <c:if test="${zc.isSuccess == 2}">
                                        <span>众筹失败</span>
                                    </c:if>
                                    <c:if test="${zc.isSuccess == 3}">
                                        <span>退款中</span>
                                    </c:if>
                                    <c:if test="${zc.isSuccess == 4}">
                                        <span>退款成功</span>
                                    </c:if>
                                </td>
                            </tr>
                        </c:forEach>
                        </tbody>
                    </table>
                </ul>
            </div>
            <div id="page_content" class="page-container"></div>
        </div>
    </section>
</div>
<!--底部-->
<%@include file="../include/incScript.jsp" %>
<script type="text/javascript" src="${ctx}/script/common/list.js"></script>
<script type="text/javascript">
    $(function() {
        // 加载分页
        loadPageNew({
            elem: 'page_content',
            totalCount: '${page.totalCount}',
            limit: '${page.limit}',
            page: '${page.page}'
        });
        layui.use([ 'form', 'laypage' ], function() {
            var form = layui.form;

        });
        $("#submitBtn").click(function() {
            $("#myForm").submit();
        });

        $("#resetBtn").click(function() {
            $("#myForm input[type=text]").val("");
            $("#myForm select").find("option:eq(0)").attr("selected", true);
            $(".check-btn-inner").find("a").removeClass("active");
            $(".check-btn-inner").find("a:eq(0)").addClass("active")
            $(".check-btn-inner [name=timeType]").val("");
        });
    });

    function doSubmit(){
        var memberId = $("#memberId").val();
        if(memberId == ""){
            util.layerMsgError("请先选择")
            return false;
        }
        return true;
    }

    function returnData() {

    }
</script>
</body>
</html>